@import "./reset";

.container {
  overflow: hidden;
}
.carousel {
  display: grid;
  width: 400vw;
  grid-template-columns: repeat(4, 1fr);
  animation: move 8s steps(4, end) infinite;
  &__item {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 80px;
    font-weight: lighter;
    &:nth-child(1) {
      background-color: #1abc9c;
    }
    &:nth-child(2) {
      background-color: #2ecc71;
    }
    &:nth-child(3) {
      background-color: #3498db;
    }
    &:nth-child(4) {
      background-color: #9b59b6;
    }
  }

  &:hover {
    animation-play-state: paused;
  }
}

@keyframes move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-400vw);
  }
}
